export const checkTokenCookie = ():Boolean => {
    const cookies = document.cookie.split(';');
    const isLogin = cookies.some(cookie => 
      cookie.trim().startsWith('spring-ai-token=')
    );
    console.log(isLogin)
    return isLogin;
}

// 清除 spring-ai-token
export const clearTokenCookie = () => {
    document.cookie = 'spring-ai-token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
  };